﻿@model HexagonWeb.Models.ChangePasswordViewModel

@{
    ViewBag.Title = "修改密码";
}

<div class="row">
    <div class="col-md-3 col-sm-4">@Html.Partial("Info")</div>
    <dv class="col-md-9 col-sm-8">
        <ol class="breadcrumb">
            <li><span class="glyphicon glyphicon-home"><a>个人中心</a></span></li>
            <li>修改密码</li>
        </ol>

        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            
            <div class="form-horizontal">
                <h4>修改密码</h4>
                <hr />
                @Html.ValidationSummary(true, "", new { @class = "text-danger" })

                <div class="form-group">
                    @Html.LabelFor(model => model.OriginalPassword, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.OriginalPassword)
                        @Html.ValidationMessageFor(model => model.OriginalPassword, "", new { @class = "text-danger" })
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.Password, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.Password)
                        @Html.ValidationMessageFor(model => model.Password, "", new { @class = "text-danger" })
                    </div>
                </div>

                <div class="form-group">
                    @Html.LabelFor(model => model.ConfirmPassword, new { @class = "control-label col-md-2" })
                    <div class="col-md-10">
                        @Html.EditorFor(model => model.ConfirmPassword)
                        @Html.ValidationMessageFor(model => model.ConfirmPassword, "", new { @class = "text-danger" })
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type="submit" value="修改" class="btn btn-default" />
                    </div>
                </div>
            </div>
        }
    </dv>
</div>


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}